package design.State;

/**
 * Created by looper on 2017/8/24.
 */
public class StateTest {
  public static void main(String[] args) {
    //初始状态 为 在线状态
    Context context = new Context(new OnlineState(StateName.ONLINE));

    context.changeState();

    context.changeState();
  }
}
